import fetch from './axios'
// 关注
export const focusUser = data => fetch('/ucapi/userFocus/focus', data)

// 是否关注了某个用户
export const getFocusStatus = (data) => fetch('/lts/userFocus/getFocusStatus', data, 'get')

// 获取计划文章详情
export const getArticleDetail = (data) => fetch('/lts/article/detail', data)

// 获取观点文章详情
export const getArticleDetailForViewpoint = (data) => fetch('/lts/viewPoint/get', data)
// 获取观点推荐文章
export const getViewpointRecommendArticle = (data) => fetch('/lts/app/viewPoint/getListBySiteId', data, 'post', 'json')

// 获取cms文章详情
export const getCmsArticleDetail = (data) => fetch('/lts/app/article/get', data)
// 推荐cms文章
export const getCmsRecommendArticle = (data) => fetch('/lts/app/article/page', data)

// 观点文章 打赏下订单
export const rewardViewPointArticleOrder = (data) => fetch('/lts/orders/viewpoint', data, 'post', 'json')

// 计划文章打赏下订单
export const rewardPlanArticleOrder = (data) => fetch('/lts/orders/planArticle', data, 'post', 'json')

// 观点文章点赞
export const praiseForViewpointArticle = data => fetch('/lts/praise/viewPoint', data)

// 计划文章详情点赞
export const praiseForArticle = data => fetch('/lts/article/praise', data)

// cms文章详情点赞
export const praiseForCmsArticle = data => fetch('/lts/praise/article', data)

// 文章打赏排行
export const articleRewardRecord = (businessId, data) => fetch('/lts/orders/sorting/' + businessId, data, 'get')
